//
//  EJSGoodsModel.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/12/21.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import "EJSGoodsModel.h"

@implementation EJSGoodsModel

- (NSString *)getArrayObjectClassNameForArrayName:(NSString *)arrayName{
    if([arrayName isEqualToString:@"labels"]){
        return @"EJSLabelModel";
    }
    else if ([arrayName isEqualToString:@"coupon"]){
        return @"EJSRebateModel";
    }
    else if ([arrayName isEqualToString:@"pics"]){
        return @"NSString";
    }
    else if ([arrayName isEqualToString:@"skus"]){
        return @"EJSGoodsSkuModel";
    }
    else if ([arrayName isEqualToString:@"specs"]){
        return @"EJSGoodsSpecModel";
    }
    return @"";
}

- (NSString *)minInCart{
    if(_minInCart){
        return _minInCart;
    }
    return @"1";
}

- (NSString *)minToBuy{
    if(_minToBuy){
        return _minToBuy;
    }
    return @"1";
}

@end

@implementation EJSGoodsSkuModel

@end

@implementation EJSGoodsSpecModel

- (NSString *)getArrayObjectClassNameForArrayName:(NSString *)arrayName{
    return @"EJSSpecModel";
}

@end

@implementation EJSSpecModel

@end


@implementation EJSLabelModel

@end

@implementation EJSRebateModel

@end


@implementation EJSGoodsListModel

- (NSString *)getArrayObjectClassNameForArrayName:(NSString *)arrayName{
    return @"EJSGoodsModel";
}

@end
